<?php 
header('Content-type:text/html;charset=utf-8');
//require './functions.php';
//echo 'houdunwang';
//p(1);
//p('asd');
//$a = array ('a','b','c');
//p($a);




$num = 1.1;
echo ceil($num);
echo '</br>';
echo floor($num);
echo '</br>';
$arr = array (1,2,20,50,100);
echo max($arr);
echo '</br>';
echo max($arr);
echo '</br>';


$mnu = 2.6;
echo round($mnu);
echo '</br>';

echo mt_rand(0, 40);
echo '</br>';


echo pow(5, 5);

echo '</br>';

//$w = 'www';
//$str = '$whdw\'com';
//echo $str;




/*
//$w = 'www';
//$str = "{$w}hdw\"com\$h\\";
//echo $str;
//file_put_contents('./text.php', "<?php\r\necho 123; ?>");
*/





//$w = 'wwww';
//$str = <<<str
//我要学会PHP!
//{$w}12306.com
//str;
//echo $str;




//$str = '  abc  ';
//var_dump($str);
//$str = trim($str);
//$str = ltrim($str);
//echo strlen($str);

//$str = '.jpg';
//echo ltrim($str,'.');

//$str = '我不是ABC';
//echo mb_strlen($str,'utf-8');


//echo strtolower('ABc');
//echo '</br>';
//echo strtoupper('ABcsfasaf');



//echo ucfirst('i\'m a good boy');
//echo '</br>';
//echo ucwords('i\'m a good boy');




//$str = md5('admin888_a+{}o(n_n)o~');
//echo strlen($str);



//$str = '1.jpg|2.jpg|3.jpg';
//$arr = explode('|',$str);
//p($arr); 调用p函数



//$arr = array('回锅肉','少且行','地三鲜');
//p($arr[1]);   调用p函数
//echo implode('-', $arr);



//$str = 'adffaddv';
//echo substr($str,1);
//echo substr($str,-2);
//echo substr($str,1,-2);


//
//$str = '我是中国人';
//echo mb_substr($str, 0,4,'utf-8');

//$str = './Upload/abc.123.gif';
////echo strchr($str,'.');
//$tyy = strrchr($str, '.');
//echo ltrim($tyy,'.');


//$str = './Up/1.jpg';
//echo strpos($str, '.');

$str = 'a.b.c.A';
//echo str_replace('a','*', $str);
//echo str_ireplace('a','*', $str);























 ?>